<template>
  <!-- 小区首页 -->
  <VillageIndex v-if="villageType == 'village'" />

  <!-- 非小区首页 -->
  <NotVillageIndex v-else />
</template>
<script>


import { computed, defineComponent } from "vue";
import store from "@/store";
import NotVillageIndex from "@/views/home/NotVillageIndex.vue";
import VillageIndex from "@/views/home/VillageIndex.vue";

export default defineComponent({
  name: "homeOverview",
  components: {
    NotVillageIndex,
    VillageIndex,
  },
  setup() {
    const villageType = computed(() => store.getters.buildingInfo.villageType);

    return {
      villageType,
    };
  },
});
</script>
